package per.hx.bs.entity.sys;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import per.hx.bs.base.entity.BaseEntity;

import java.io.Serializable;
import java.util.Arrays;

/**
 * @author HuXing
 * @date 2018/4/29  0:50
 */
@TableName("sys_job")
public class SysJobDO extends BaseEntity<SysJobDO> {

    @TableId
    private Long id;
    private String jobName;
    private Integer baseMoney;
    private Integer sortNo;

    @TableField(exist = false)
    private Long[] userIds;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getJobName() {
        return jobName;
    }

    public void setJobName(String jobName) {
        this.jobName = jobName;
    }

    public Integer getBaseMoney() {
        return baseMoney;
    }

    public void setBaseMoney(Integer baseMoney) {
        this.baseMoney = baseMoney;
    }

    public Integer getSortNo() {
        return sortNo;
    }

    public void setSortNo(Integer sortNo) {
        this.sortNo = sortNo;
    }

    public Long[] getUserIds() {
        return userIds;
    }

    public void setUserIds(Long[] userIds) {
        this.userIds = userIds;
    }

    @Override
    public String toString() {
        return "SysJobDO{" +
                "id=" + id +
                ", jobName='" + jobName + '\'' +
                ", baseMoney=" + baseMoney +
                ", sortNo=" + sortNo +
                ", userIds=" + Arrays.toString(userIds) +
                '}';
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
